package com.itheima.dto.message;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.List;

/**
 * 发布信息dto
 *
 * @author ysm
 */
@Data
@ApiModel(value = "发布信息Dto")
public class MessageDto implements Serializable {
    private static final long serialVersionUID = 4113739268697150006L;
    /**
     * 信息标题
     */
    @NotBlank(message = "标题不能为空")
    @ApiModelProperty(value = "信息标题", required = true)
    private String title;

    /**
     * 信息内容
     */
    @NotBlank(message = "内容不能为空")
    @ApiModelProperty(value = "信息内容", required = true)
    private String content;

    /**
     * 不可见的用户
     */
    @ApiModelProperty(value = "不可见用户id集", required = true)
    private List<String> userIds;

    /**
     * 信息种类
     */
    @NotEmpty(message = "信息种类不能为空")
    @ApiModelProperty(value = "信息种类", required = true)
    private List<Integer> kinds;

    /**
     * 图片url
     */
    @ApiModelProperty(value = "图片url")
    private List<String> urlList;
}
